package com.aspose.cells;

import java.util.Iterator;

public class ContentTypePropertyCollection extends CollectionBase {
   String b = "f0ee3e2c-6582-4549-9afa-575e8dac0aa5";
   int c = -1;

   void a(ContentTypePropertyCollection var1) {
      this.c = var1.c;
      this.b = var1.b;
      Iterator var2 = var1.iterator();

      while(var2.hasNext()) {
         ContentTypeProperty var3 = (ContentTypeProperty)var2.next();
         ContentTypeProperty var4 = new ContentTypeProperty(this);
         this.a(var4);
         var4.a(var3);
      }

   }

   public int add(String name, String value) {
      return this.add(name, value, (String)null);
   }

   public int add(String name, String value, String type) {
      ContentTypeProperty var4 = new ContentTypeProperty(this);
      var4.setName(name);
      var4.setValue(value);
      if (type != null && type.indexOf(":") == -1) {
         type = "dms:" + type;
      }

      var4.d = type;
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var4);
      return this.a.size() - 1;
   }

   int a(ContentTypeProperty var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
      return this.a.size() - 1;
   }

   public ContentTypeProperty get(int index) {
      return (ContentTypeProperty)this.a.get(index);
   }

   public ContentTypeProperty get(String name) {
      for(int var2 = 0; var2 < this.getCount(); ++var2) {
         if (com.aspose.cells.b.a.zv.b(this.get(var2).getName(), name)) {
            return this.get(var2);
         }
      }

      return null;
   }
}
